﻿using Autofac;
using TaskManager.Domain.Services;

namespace TaskManager.Domain.Modules
{
    /// <summary>
    /// Encapsulates services provided by Domain Layer
    /// </summary>
    public class DomainLayer : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<UserActionLogger>().As<IUserActionLogger>().InstancePerLifetimeScope();
            builder.RegisterType<ProjectDeleteService>().As<IProjectDeleteService>().InstancePerLifetimeScope();
            builder.RegisterType<TaskUpdateService>().As<ITaskUpdateService>().InstancePerLifetimeScope();
        }
    }
}